package lms.entity;

import org.springframework.jdbc.core.RowCallbackHandler;

import java.util.Date;

/**
 * @description: 读者借阅图书信息实体类
 * @author: Grape_Pip
 * @time: 2021/06/21
 */
public class Borrow {
    /** 借阅编号   */
    private int borrowId;
    /** 借阅的书籍编号   */
    private int borrowISBN;
    /** 借阅读者编号   */
    private int borrowReaderId;
    /** 借阅数量   */
    private int borrowSum;
    /** 借阅日期   */
    private Date borrowDate;
    /** 归还日期   */
    private Date returnDate;
    /** 借阅罚金   */
    private Double borrowFine;
    /** 借阅状态： 0,借阅中；1,已归还  */
    private int boStatus;


    public Borrow() {
    }

    public Borrow(int borrowId, int borrowISBN, int borrowReaderId, int borrowSum, Date borrowDate, Date returnDate, Double borrowFine, int boStatus) {
        this.borrowId = borrowId;
        this.borrowISBN = borrowISBN;
        this.borrowReaderId = borrowReaderId;
        this.borrowSum = borrowSum;
        this.borrowDate = borrowDate;
        this.returnDate = returnDate;
        this.borrowFine = borrowFine;
        this.boStatus = boStatus;
    }

    public int getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(int borrowId) {
        this.borrowId = borrowId;
    }

    public int getBorrowISBN() {
        return borrowISBN;
    }

    public void setBorrowISBN(int borrowISBN) {
        this.borrowISBN = borrowISBN;
    }

    public int getBorrowReaderId() {
        return borrowReaderId;
    }

    public void setBorrowReaderId(int borrowReaderId) {
        this.borrowReaderId = borrowReaderId;
    }

    public int getBorrowSum() {
        return borrowSum;
    }

    public void setBorrowSum(int borrowSum) {
        this.borrowSum = borrowSum;
    }

    public Date getBorrowDate() {
        return borrowDate;
    }

    public void setBorrowDate(Date borrowDate) {
        this.borrowDate = borrowDate;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public Double getBorrowFine() {
        return borrowFine;
    }

    public void setBorrowFine(Double borrowFine) {
        this.borrowFine = borrowFine;
    }

    public int getBoStatus() {
        return boStatus;
    }

    public void setBoStatus(int boStatus) {
        this.boStatus = boStatus;
    }

    @Override
    public String toString() {
        return
                "借阅图书ISBN：" + borrowISBN + "  " +
                "借阅读者编号：" + borrowReaderId +"  "+
                "借阅数量：" + borrowSum + "  " +
                "借阅时间：" + borrowDate;
    }

}
